package com.quwan.common.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.util.Map;
@ApiModel("推送form")
public class PushForm {
    @ApiModelProperty(value = "标题")
    private String title;
    @ApiModelProperty(value = "内容")
    private String content;
    @ApiModelProperty(value = "tnps 设备token")
    private String token;
    @ApiModelProperty(value = "ums 别名")
    private String alias;
    @ApiModelProperty(value = "透传消息map")
    private Map<String,String> extrasMap;

    /**
     * 极光推送
     * @param title
     * @param content
     * @param alias
     * @param extrasMap
     */
    @NotNull
    public PushForm(String title, String content, String alias, Map<String, String> extrasMap) {
        this.title = title;
        this.content = content;
        this.alias = alias;
        this.extrasMap = extrasMap;
    }

    /**
     * tnps 推送
     * @param title
     * @param content
     * @param token
     * @param alias
     * @param extrasMap
     */
    public PushForm(String title, String content, String token,String alias, Map<String, String> extrasMap) {
        this.title = title;
        this.content = content;
        this.token = token;
        this.alias = alias;
        this.extrasMap = extrasMap;
    }

    public String getTitle() {
        return title;
    }

    public String getContent() {
        return content;
    }

    public String getToken() {
        return token;
    }

    public String getAlias() {
        return alias;
    }

    public Map<String, String> getExtrasMap() {
        return extrasMap;
    }
}
